package cn.lili.timetask.handler.impl.broadcast;

import cn.lili.modules.goods.client.CommodityClient;
import cn.lili.timetask.handler.EveryHourExecute;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * 小程序直播状态获取
 *
 * @author Bulbasaur
 * @since 2021/5/20 2:52 下午
 */
@Component
@RequiredArgsConstructor
public class BroadcastExecute implements EveryHourExecute {

    private final CommodityClient commodityClient;

    @Override
    public void execute() {
        //同步直播商品状态
        commodityClient.getGoodsWareHouse();
    }
}
